package com.future.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("学生答卷表")
@Accessors(chain = true)
public class AnswerSheet {
    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("答卷人的id")
    private Long userId;
    @ApiModelProperty("问卷id")
    private Long questionnaireId;
    @ApiModelProperty("总分")
    private Integer totalScore;
    @ApiModelProperty("建议")
    private String suggestion;
    @ApiModelProperty("完成时间")
    @TableField("completed_at")
    private LocalDateTime completedAt;
    @ApiModelProperty("创建时间")
    @TableField("created_at")
    private LocalDateTime createdAt;
}
